1 Star 0 Fork 1

tlw_ray@163.com / pdm-object

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

PDM-Object

usage

  • Read *.pdm file to object
  • Write pdm object to *.pdm file.

contribute

  • jdk8
  • gradle 4.10.3

example

public static void main(String[] args) throws JAXBException {
    File pdmFile = new File("data/model.xml");
    Pdm pdm = new Pdm();

    //Read from *.pdm file to Object
    RootModel rootModel = pdm.read(pdmFile);

    //Show Tables and Columns
    System.out.println(rootModel.RootObject.Id);
    System.out.println(rootModel.RootObject.Children.size());
    Model model = rootModel.RootObject.Children.get(0);
    for(Table table:model.Tables){
        System.out.println("Table:" + table.Code + "(" + table.Name + ")");
        for(Column column:table.Columns){
            System.out.println("\tColumn:" + column.Code + "(" + column.Name + ")");
        }
    }

    //rewrite to XML
    //pdm.write(rootModel, System.out);
}

log

  • read PowerDesigner format
  • Introduce Eclipse's xml persistence library to solve the problem of xml tag customization
  • Introduce sun's annotation to solve the problem of escaping xml node namespace
  • Achieve reading all pdm file nodes and attributes

空文件

简介

对象化解析pdm文件, 将对象持久化为pdm文件 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/tlw_ray/pdm-object.git
git@gitee.com:tlw_ray/pdm-object.git
tlw_ray
pdm-object
pdm-object
master

搜索帮助